import 'package:fish_redux/fish_redux.dart';

enum SelectCommunityViewAction {
  action,
  onGetData,
  onLoad,
  onSearch,
  onClearText,
  onTextChange,
}

class SelectCommunityViewActionCreator {
  static Action onAction() {
    return const Action(SelectCommunityViewAction.action);
  }

  static Action onGetData(data) {
    return Action(SelectCommunityViewAction.onGetData, payload: data);
  }

  static Action onLoad(page) {
    return Action(SelectCommunityViewAction.onLoad, payload: page);
  }

  static Action onSearch(data) {
    return Action(SelectCommunityViewAction.onSearch, payload: data);
  }

  static Action onClearText() {
    return const Action(SelectCommunityViewAction.onClearText);
  }

  static Action onTextChange(data) {
    return Action(SelectCommunityViewAction.onTextChange, payload: data);
  }
}
